<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>{{config('site.sitename')}} | 失败</title>

    <link href="/assets/css/bootstrap.min.css" rel="stylesheet">
    <link href="/assets/font-awesome/css/font-awesome.min.css" rel="stylesheet">

    <link href="/assets/css/animate.css" rel="stylesheet">
    <link href="/assets/css/style.min.css" rel="stylesheet"></head>

<body class="gray-bg">

    <div class="middle-box text-center animated fadeInDown">
        <h2 class="font-bold">{{session('redirectway')}} : (</h2>

        <div class="error-desc">
            <span style="text-decoration: underline;" id="span1">5</span>
            秒后跳转.
            <br/>
            回到首页
            <br/>
            <a href="/" class="btn btn-primary m-t">首页</a>
        </div>
    </div>

    <!-- Mainly scripts -->
    <script src="/assets/js/jquery-2.1.1.js"></script>
    <script src="/assets/js/bootstrap.min.js"></script>
    <script type="text/javascript">  
        //设定倒数秒数  
        var t = 5;  
        //显示倒数秒数  
        function showTime(){  
            t -= 1;  
            document.getElementById('span1').innerHTML= t;  
            if(t==0){  
                location.href='{{session('redirecturl')}}';  
            }  
            //每秒执行一次,showTime()  
            setTimeout("showTime()",1000);  
        }  
          
          
        //执行showTime()  
        showTime();  
    </script>
</body>

</html>
